package com.ftg.learn.rbac.service;

import com.ftg.learn.rbac.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ftg.learn.rbac.vo.PermissionVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Guobt
 * @since 2022-02-09
 */
public interface IPermissionService extends IService<Permission> {

    /**
     * 查询当前用户的权限
     * @param id
     * @return
     */
    List<PermissionVo> showPermissionForUserId(String id);


    /**
     * 分级查询当前用户权限
     * @param uid
     * @return
     */
    List<PermissionVo> queryPermission(String uid);

}
